<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	if(request.getParameter("theid")!=null)
	{
		request.setAttribute("theid", request.getParameter("theid"));
	}
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML>
<html>
<head>
<base href="<%=basePath%>">

<title>新增用户</title>
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>jslib/bootstrap/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="<%=basePath%>css/theme.css">
<link rel="stylesheet"
	href="<%=basePath%>jslib/font-awesome/css/font-awesome.css">
<script src="<%=basePath%>jslib/jquery-1.7.2.min.js"
	type="text/javascript"></script>
</head>

<body class="content1">
	<div class="header">
		<h1 class="page-title">新增用户</h1>
	</div>

	<ul class="breadcrumb">
		<li><a href="index.html">用户管理</a> <span class="divider">/</span>
		</li>
		<li class="active">新增用户</li>
	</ul>

	<div class="container-fluid">
		<div class="row-fluid">
		<form class="form-inline" method="post"
				action="servlet/SysFunServlet?cmd=search">
				<input class="input-xlarge" name="searchname"
					type="text"> <input
					class="btn icon-search" type="submit" value="查询" />
					</form>
					
					
			<form method="post" action="<%=basePath %>user/add">
				<div class="well">
					<div class="tab-pane active in">
						 <label> 用户名称： </label> 
						 <input type="text"
							name="name" maxlength="100"> 
						 <label>密码</label>
						 <input type="password" name="pass">
							<label>用户状态： </label> 
						<select name="state">
							<option value="1" selected>正常</option>
							<option value="0">锁定</option>
						</select>
						角色ID：
						<select name="roleid">
						<c:forEach items="${roles}" var="item">
							<option value="${item.id }">${item.name }</option>
						</c:forEach>
						</select>
						<label> </label>
						
					<input type="submit" value="提交">
					</div>
				</div>
			</form>
			
			
		</div>
	</div>
</body>
</html>
